<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>子应用A</title>
    <script type="importmap">
      {
        "imports": {
          "vue": "/admin/vue.esm-browser.js",
          "vue-router": "/admin/vue-router.esm-browser.js",
          "@micro-zoe/micro-app": "/admin/micro-app.1.0.0.rc.5.esm.js",
          "element-plus": "/admin/element-plus.2.2.20.full.mjs.js",
        }
      }
    </script>
    <!-- 从主应用中引入第三方依赖 (/admin前缀为主应用) -->
    <!-- inject_on_build：vue -->
    <!-- inject_on_build：vue-router -->
    <!-- inject_on_build：micro-app -->

    <!-- cdn导入micro-app 需要取default作为microApp -->
    <script>
      if (window.microApp?.default) window.microApp = window.microApp.default;
    </script>
  </head>
  <body>
    <div id="appA"></div>
    <script type="module" src="/src/main.js"></script>
  </body>
</html>
